Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-es-utils

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-es-utils

es utils design for angular1.x

  • 1.3.4
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-25%
Maintainers
1
Weekly downloads
 
Created
Source

angular-es-utils

Build Status npm version npm downloads coverage

The es6 version of angular utils

How To Use

npm i angular-es-utils -D
import {Inject} from 'angular-es-utils';
工具列表
  • animation
    动画操作帮助类

    import {Animation} from 'angular-es-utils';
    import Animation from 'angular-es-utils/animation';
    
  • apply
    替代$scope.$apply()

    import apply from 'angular-es-utils/apply';
    
    ...
    apply();
    
  • decorators
    装饰器 decorators usage

  • deferred

  • factory-creator

    Deprecated 迁移指南

    将Class转换成factory,供directive语法使用

    .directive('editor', FactoryCreator.create(Editor))
    
  • injector
    在angular环境之外获取ng-app的注入器

    import injector from 'angular-es-utils/injector';
    let scope = injector.get('$rootScope').$new();
    
  • EventBus 事件总线,环境无关的 订阅/发布 模型

    import EventBus from 'angular-es-utils/event-bus';
    // 订阅消息
    const deregister = EventBus.on('grid:click', (num1,num2,num3) => console.log(num1, num2, num3));
    // 发布消息
    EventBus.dispatch('grid:click', 1, 2, 3);
    // 解除订阅
    deregister();
    
  • module-helper

    import ModuleHelper from 'angular-es-utils/module-helper';
    let module = ModuleHelper.get('app');
    

FAQs

Package last updated on 12 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc